package com.edu.service.impl;

import com.edu.dao.BookDao;
import com.edu.dao.impl.BookDaoImpl;
import com.edu.entity.Book;
import com.edu.service.BookService;

import java.util.List;

/**
 * @Author:max
 * @Date: 2024/9/13 19:49
 * @Description:
 */
public class BookServiceImpl implements BookService {
   BookDao bookdao=new BookDaoImpl();

    @Override
    public List<Book> selectAll() {
        return null;
    }

    @Override
    public List<Book> queryAll() {
        // TODO Auto-generated method stub
        List list=bookdao.selectAll();
        if(list==null) {
            System.out.println("查询失败，没有数据");
        }
        return list;
    }
}
